<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 借出单列表</title>
    <link rel="shortcut icon" href="../../content/static/img/favicon.ico">
    <link href="../../content/css/common_modal.css" rel="stylesheet">
    <link href="../../content/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="../../content/static/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="../../content/static/css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="../../content/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../../content/js/lib/vue/select2.min.css" rel="stylesheet">
    <link href="../../content/js/lib/calendar/calendar.css" rel="stylesheet">
    <link href="../../content/js/lib/calendar/scrollbar.css" rel="stylesheet">
    <link href="../../content/static/css/style.min.css?v=4.0.0" rel="stylesheet">
    <style>
        .fa-female:before {
            color: #fb7cd5;
        }
        .fa-location-arrow:before {
            color: rebeccapurple;
        }
        .fa-mobile-phone:before, .fa-mobile:before{
            color: black;
        }
        .fa-map-marker:before {
            color: #1ab394;
        }
        table-th{
            font-size: 12px;
            font-family: tahoma, "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
            line-height: 1.42857143;
            color: #333;
            background-color: #f5f5f5;
        }
        table tr{ height:40px;}
        #productTree {
            width: 320px;
            max-height: 376px;
            min-height: 32px;
            overflow-y: auto;
            padding: 10px 10px 0;
        }
        .projectTreeWrap {
            top:148px !important
        }.search{
            float: left;padding: 0px 10px 0px 0px;
        }
</style>
</head>

<body class="content-container">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <ol class="breadcrumb">
                            <li>
                                <a>库存管理</a>
                            </li>
                            <li>
                                <a>借入单列表</a>
                            </li>
                        </ol>
                    </div>
                    <div class="ibox-content">
                        <div class="col-sm-12" style="background-color: #f5f5f5;padding: 12px 12px 10px">
                            <div class="input-group">
                                <div style="float: left;padding: 0px 10px;">
                                    <input id="costTimeStart" name="costTimeStart" placeholder="制单开始日期" v-model="PayTimeStart"
                                        type="text" class="fill-item timeChoose w-120" readonly="readonly" style="float: left">
                                    <span class="fill-desc" style="float: left">到</span>
                                    <input id="costTimeEnd" name="costTimeEnd" v-model="PayTimeEnd" type="text" class="fill-item timeChoose w-120"
                                        placeholder="制单结束日期" readonly="readonly">
                                </div>
                                <div class="search">
                                    <select id="warehouse" class="col-sm-4">
                                        <option value='' disabled selected style='display:none;'>选择仓库</option>
                                        <option v-for="item in warehouseList" v-bind:value="item.Value" v-bind:selected="$index===0"
                                            v-text="item.Text"></option>
                                    </select>
                                </div>
                                <div class="search">
                                    <select id="status" class="col-sm-4">
                                        <option value='' disabled selected style='display:none;'>当前状态</option>
                                        <option value='0'>全部</option>
                                        <option value='1'>部分归还</option>
                                        <option value='2'>未归还</option>
                                        <option value='3'>已归还</option>
                                    </select>
                                </div>
                                <div class="search">
                                    <select id="approveStatus" class="col-sm-4">
                                        <option value='' disabled selected style='display:none;'>审核状态</option>
                                        <option v-for="item in approveStatusList" v-bind:value="item.Value" v-bind:selected="$index===0"
                                            v-text="item.Text"></option>
                                    </select>
                                </div>
                                <div class="search" style="width: 200px;">
                                    <input type="text" placeholder="搜索单据编号、商品编号、制单人" class="fill-item col-sm-4">
                                </div>
                                <div class="search" style="width: 120px;">
                                    <div class="checkbox i-checks" style="margin-top: 6px;">
                                        <label style="padding-left: 10px;"><input type="checkbox" value=""> <i></i>
                                            显示作废单</label>
                                    </div>
                                </div>
                                <a class="revision-btn">搜索</a>
                            </div>
                        </div>
                        <div class="col-sm-12" style="padding: 12px 0px 12px 0px;">
                            <div class="alert alert-info">
                                <a class="revision-btn" v-on:click="addShow()">新增借入</a>
                                <a class="revision-btn" v-on:click="printhow()">打印</a>
                                <a class="revision-btn" v-on:click="importShow()">导入</a>
                                <span>总条数：<span>12 条</span></span>&nbsp;&nbsp;<span>借入金额<span>810,0.00</span></span>
                            </div>
                        </div>
                        <table class="table table-hover">
                            <thead style="background: #f5f5f5;">
                                <tr>
                                    <th>#序号</th>
                                    <th>制单日期</th>
                                    <th>单据编号</th>
                                    <th>供应商名称</th>
                                    <th>借入商品</th>
                                    <th>入库仓库</th>
                                    <th>归还日期</th>
                                    <th>当前状态</th>
                                    <th>审核状态</th>
                                    <th>制单人</th>
                                    <th>经办人</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>2018-12-20</td>
                                    <td>JRD20181220004</td>
                                    <td>昌盛文具</td>
                                    <td>劲霸超浓缩低泡洗车香波、</td>
                                    <td class="text-navy">A仓</td>
                                    <td>2018-12-24</td>
                                    <td class="text-navy">已归还</td>
                                    <td>待财务审批
                                        <div>
                                            <a class="text-navy" href="javascript:;">审批进度</a>
                                        </div>
                                    </td>
                                    <td>老板</td>
                                    <td>老板</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>2018-12-20</td>
                                    <td>JRD20181220006</td>
                                    <td>昌盛文具</td>
                                    <td>劲霸超浓缩低泡洗车香波、</td>
                                    <td class="text-navy">B仓</td>
                                    <td>2018-12-25</td>
                                    <td class="text-navy">已归还</td>
                                    <td>待总经理审批
                                        <div>
                                            <a class="text-navy" href="javascript:;">审批进度</a>
                                        </div>
                                    </td>
                                    <td>老板</td>
                                    <td>老板</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>2018-12-20</td>
                                    <td>JRD20181220009</td>
                                    <td>昌盛文具</td>
                                    <td>劲霸超浓缩低泡洗车香波、</td>
                                    <td class="text-navy">C仓</td>
                                    <td>2018-12-25</td>
                                    <td class="amount">未归还</td>
                                    <td>待CEO审批
                                        <div>
                                            <a class="text-navy" href="javascript:;">审批进度</a>
                                        </div>
                                    </td>
                                    <td>老板</td>
                                    <td>老板</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div style="display: none;" v-show="pageInit">
                <!-- 新增借入单 -->
                <modal v-bind:show.sync="addModal.show" v-bind:style="addModal .style" v-bind:add-class="addModal.addClass">
                    <h4 slot="header">新增借入单
                        <span class="title-tips">单据编号：<span>PD20181220005</span></span> 
                        <span class="title-tips">制单日期：<span>2018-12-20 14:40:58</span></span>
                        <span class="title-tips">经办人：<span>当前登陆人</span></span>
                    </h4>
                    <div slot="body" class="clearfix">
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <div class="search-list" style="text-align:right;padding: 10px 10px 10px; margin-bottom: 15px">
                                <div class="input-group">
                                    <div style="float: left;padding: 0px 10px 0px 0px;">
                                        <select id="warehouseAdd">
                                            <option value='' disabled selected style='display:none;'>选择仓库</option>
                                            <option v-for="item in warehouseList" v-bind:value="item.Value" v-bind:selected="$index===0" v-text="item.Text"></option>
                                        </select>
                                    </div>
                                    <div style="float: left;padding: 0px 10px 0px 0px;">
                                        <select id="supplier">
                                            <option value='' disabled selected style='display:none;'>选择供应商</option>
                                            <option v-for="item in warehouseList" v-bind:value="item.Value" v-bind:selected="$index===0" v-text="item.Text"></option>
                                        </select>
                                    </div>
                                    <div style="float: left;padding: 0px 10px;">
                                        
                                    </div>
                                    <div style="float: left;padding: 0px 10px;">
                                        <input class="fill-item timeChoose" placeholder="扫码入库" type="text"  readonly="readonly" />
                                    </div>
                                    <a class="revision-btn" href="javascript:;" v-on:click="selectProduct()">批量选择商品</a>
                                </div>
                            </div>
                            <div class="input-group" style="margin: 0px 0px 15px 0px;background: #eee;">
                                <span style="width: 70px;float: left;line-height: 34px;text-align: center">归还日期</span>
                                <div style="width: 180px;float: left;">
                                    <input id="backTime" class="fill-item timeChoose" placeholder="归还日期" type="text"  readonly="readonly" style="height: 34px;" />
                                </div>
                                <span style="width: 70px;float: left;line-height: 34px;text-align: center">备注</span>
                                <div style="width: 600px;float: left;">
                                    <textarea id="ccomment" name="comment" class="form-control" required="" aria-required="true" style="height: 34px;"></textarea>
                                </div>
                            </div>
                            <div style="color: red">注：单个借入单可选最大产品数为100条</div>
                            <table class="table table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th style="width: 70px;">序号</th>
                                        <th>商品名称/规格</th>
                                        <th style="width: 80px;">商品编号</th>
                                        <th style="width: 70px;">属性</th>
                                        <th style="width: 50px;">单位</th>
                                        <th style="width: 70px;">数量</th>
                                        <th style="width: 80px;">单价(元)</th>
                                        <th style="width: 80px;">金额(元)</th>
                                        <th style="width: 120px;">备注</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="item in productChooseList" v-bind:data-index="$index">
                                        <td><span v-text="$index+1"></span>
                                            <span style="padding: 0px 0px 0px 5px;"><a href="javascript:;">删除</a></span>
                                        </td>
                                        <td> <span v-text="item.productName"></span><span v-if="item.prope!=''">/</span><span v-text="item.prope"></span></td>
                                        <td class="text-navy"><span v-text="item.productCode"></span></td>
                                        <td><span v-text="item.prope"></span></td>
                                        <td><span v-text="item.spec"></span></td>
                                        <td class="text-navy"><span v-text="item.stockCount"></span></td>
                                        <td class="amount"><span v-text="item.price"></span></td>
                                        <td class="amount"><span v-text="item.price*item.stockCount"></span></td>
                                        <td><span v-tetx="item.remark"></span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </modal>
                <!-- 选择商品 -->
                <modal v-bind:show.sync="productSelectModal.show" v-bind:style="productSelectModal .style" v-bind:add-class="productSelectModal.addClass">
                    <h4 slot="header">选择商品</h4>
                    <div slot="body" class="clearfix">
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <div class="search-list" style="text-align:right;margin-bottom: 15px">
                                <div style="float: left;padding: 0px 10px 0px 0px;width: 200px;">
                                    <input type="text" placeholder="请输入商品名称/编号/条形码" class="fill-item">
                                </div>
                                <div style="float: left;padding: 0px 10px 0px 0px;width: 250px;">
                                    <span class="treeBtn project" style="text-align: left;">选择产品类型</span>
                                </div>
                                <a class="revision-btn" href="javascript:;" style="margin-left: 25px;">查询</a>
                            </div>
                            <table class="table table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th style="width: 50px;">
                                            <input class="revision-checkbox" type="checkbox" v-model="item.checked" v-on:click="productChooseClick(item)">
                                        </th>
                                        <th style="width: 50px;">数量</th>
                                        <th>商品名称/规格</th>
                                        <th style="width: 50px;">单位</th>
                                        <th style="width: 50px;">图片</th>
                                        <th style="width: 70px;">进货价</th>
                                        <th style="width: 80px;">库存数量</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="item in productListSelect">
                                        <td>
                                            <input class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)">
                                        </td>
                                        <td>
                                            <input type="text" class="fill-item"  style="width: 50px">
                                        </td>
                                        <td>
                                           劲霸内饰清洁剂/12L
                                        </td>
                                        <td><span v-text="item.spec"></span></td>
                                        <td>
                                            <img style="height: 80px;width: 80px;margin-bottom: 6px;margin-top: 6px;float: left;" src="../../content/static/img/no_pic.png">
                                        </td>
                                        <td class="text-navy"><span v-text="item.stockCount"></span></td>
                                        <td class="text-navy"><span v-text="item.inventoryCount"></span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                        <div style="color: #fb7cd5">此处前端分页处理/后端也行</div>
                    </div>
                </modal>
                 <!-- 借入单详情 -->
                <modal v-bind:show.sync="detailModal.show" v-bind:style="detailModal .style" v-bind:add-class="detailModal.addClass">
                    <h4 slot="header">借入单详情
                        <span class="title-tips">单据编号：<span>PD20181220005</span></span> 
                    </h4>
                    <div slot="body" class="clearfix">
                        <div class="search-list" style="text-align:right;padding: 10px 10px 10px;">
                            <div class="input-group">
                                <div style="float: left;padding: 0px 10px 0px 0px;width: 200px;">
                                    <input type="text" placeholder="请输入商品名称" class="fill-item col-sm-4">
                                </div>
                                <div style="float: left;padding: 0px 10px 0px 0px;width: 200px;">
                                    <select id="backStatus">
                                        <option value='' disabled selected style='display:none;'>选择归还状态</option>
                                        <option v-for="item in backStatusList" v-bind:value="item.Value" v-bind:selected="$index===0" v-text="item.Text"></option>
                                    </select>
                                </div>
                                <a class="revision-btn" href="javascript:;">搜索</a>
                                <a class="revision-btn" href="javascript:;" style="margin-left: 25px;" v-on:click="backShow()">归还</a>
                                <a class="revision-btn" href="javascript:;" style="margin-left: 25px;" v-on:click="pushShow()">转进货</a>
                            </div>
                        </div>
                        <div class="col-sm-12" style="padding: 0px;">
                            <div class="alert alert-info" style="margin: 10px 0px;">
                                <span>借入金额：<span class="amount">812,000</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span>共计<span class="text-navy">8 </span>条</span>
                            </div>
                        </div>
                        <span class="title-tips"  style="margin-left: 0px">制单时间：<span>2018-12-22</span></span>&nbsp;&nbsp;&nbsp;
                        <span class="title-tips">制单人：<span>老板</span></span>&nbsp;&nbsp;&nbsp;
                        <span class="title-tips">供应商：<span>昌盛文具</span></span><br>
                        <span class="title-tips" style="margin-left: 0px">备注：<span>测试</span></span>
                        <table class="table table-hover table-bordered"  style="margin-top: 10px">
                            <thead>
                                <tr>
                                    <th style="width: 50px;">
                                        <input class="revision-checkbox" type="checkbox" v-model="item.checked" v-on:click="productChooseClick(item)">
                                    </th>
                                    <th>商品名称/规格</th>
                                    <th>商品编号</th>
                                    <th style="width: 50px;">属性</th>
                                    <th style="width: 50px;">单位</th>
                                    <th style="width: 50px;">数量</th>
                                    <th style="width: 70px;">已归还</th>
                                    <th style="width: 70px;">未归还</th>
                                    <th style="width: 70px;">转进货</th>
                                    <th style="width: 70px;">单价(元)</th>
                                    <th style="width: 80px;">金额(元)</th>
                                    <th style="width: 80px;">备注</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>  <input disabled class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>三角阀/通用型</td>
                                    <td>SP20150717002</td>
                                    <td></td>
                                    <td>个</td>
                                    <td class="text-navy">1</td>
                                    <td>1</td>
                                    <td>0</td>
                                    <td>1</td>
                                    <td class="amount">0</td>
                                    <td class="amount">8.00</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>  <input disabled class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>劲霸超浓缩低泡洗车香波/12L</td>
                                    <td>Q01</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="text-navy">1</td>
                                    <td>1</td>
                                    <td>0</td>
                                    <td>0</td>
                                    <td class="amount">156.00</td>
                                    <td class="amount">156.00</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>  <input class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>劲霸内饰清洁剂/5L/12L</td>
                                    <td>Q0961243218</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="text-navy">9</td>
                                    <td>3</td>
                                    <td>6</td>
                                    <td>0</td>
                                    <td class="amount">356.00</td>
                                    <td class="amount">356.00</td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </modal>
                <!-- 新增归还单 JGH 接归还-->
                <modal v-bind:show.sync="backModal.show" v-bind:style="backModal .style" v-bind:add-class="backModal.addClass">
                    <h4 slot="header">新增归还单
                        <span class="title-tips">单据编号：<span>JGH20181220005</span></span> 
                    </h4>
                    <div slot="body" class="clearfix">
                        <div class="col-sm-12" style="padding: 0px;">
                            <div class="alert alert-info" style="margin-bottom: 10px;">
                                <span>归还金额：<span class="amount">812,000</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span>共计<span class="text-navy">8 </span>条</span>
                            </div>
                        </div>
                        <span class="title-tips"  style="margin-left: 0px">制单时间：<span>2018-12-22</span></span>&nbsp;&nbsp;&nbsp;
                        <span class="title-tips">制单人：<span>老板</span></span>&nbsp;&nbsp;&nbsp;
                        <span class="title-tips">供应商：<span>昌盛文具</span></span>
                        <div class="input-group" style="margin: 15px 0px 15px 0px;background: #eee;">
                            <span style="width: 70px;float: left;line-height: 34px;text-align: center">备注</span>
                            <div style="width: 850px;float: left;">
                                <textarea id="ccomment" name="comment" class="form-control" required="" aria-required="true" style="height: 34px;"></textarea>
                            </div>
                        </div>
                        <table class="table table-hover table-bordered"  style="margin-top: 10px">
                            <thead>
                                <tr>
                                    <th style="width: 50px;">
                                        <input class="revision-checkbox" type="checkbox" v-model="item.checked" v-on:click="productChooseClick(item)">
                                    </th>
                                    <th>商品名称/规格</th>
                                    <th style="width: 80px;">商品编号</th>
                                    <th style="width: 50px;">属性</th>
                                    <th style="width: 50px;">单位</th>
                                    <th style="width: 80px;">未归还数量</th>
                                    <th style="width: 70px;">归还数量</th>
                                    <th style="width: 80px;">备注</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>  <input disabled class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>三角阀/通用型</td>
                                    <td>SP20150717002</td>
                                    <td></td>
                                    <td>个</td>
                                    <td class="amount">7</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="3"></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>  <input disabled class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>劲霸超浓缩低泡洗车香波/12L</td>
                                    <td>Q01</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="amount">4</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="3"></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>  <input class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>劲霸内饰清洁剂/5L/12L</td>
                                    <td>Q0961243218</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="amount">6</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="4"></td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </modal>
                <!-- 新增转进货单 JZJ 借转进-->
                <modal v-bind:show.sync="pushModal.show" v-bind:style="pushModal .style" v-bind:add-class="pushModal.addClass">
                    <h4 slot="header">新增转进货单
                        <span class="title-tips">单据编号：<span>JZJ20181220005</span></span> 
                    </h4>
                    <div slot="body" class="clearfix">
                        <div class="col-sm-12" style="padding: 0px;">
                            <div class="alert alert-info" style="margin-bottom: 10px;">
                                <span>实付金额：<span class="amount">812,000</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span>共计<span class="text-navy">8 </span>条</span>
                            </div>
                        </div>
                        <span class="title-tips"  style="margin-left: 0px">制单时间：<span>2018-12-22</span></span>&nbsp;&nbsp;&nbsp;
                        <span class="title-tips">制单人：<span>老板</span></span>&nbsp;&nbsp;&nbsp;
                        <span class="title-tips">供应商：<span>昌盛文具</span></span><br>
                        <span class="title-tips" style="color: red">支付方式<span>点击确认后弹出支付二维码？还是说显示账号信息？</span></span>
                        <div class="input-group" style="margin: 15px 0px 15px 0px;background: #eee;">
                            <span style="width: 70px;float: left;line-height: 34px;text-align: center">付款金额</span>
                            <div style="width: 180px;float: left;">
                                <input type="text" value="812,000" class="fill-item" style="height: 34px;">
                            </div>
                            <span style="width: 70px;float: left;line-height: 34px;text-align: center">备注</span>
                            <div style="width: 600px;float: left;">
                                <textarea id="ccomment" name="comment" class="form-control" required="" aria-required="true" style="height: 34px;"></textarea>
                            </div>
                        </div>
                        <table class="table table-hover table-bordered"  style="margin-top: 10px">
                            <thead>
                                <tr>
                                    <th style="width: 50px;">
                                        <input class="revision-checkbox" type="checkbox" v-model="item.checked" v-on:click="productChooseClick(item)">
                                    </th>
                                    <th>商品名称/规格</th>
                                    <th style="width: 80px;">商品编号</th>
                                    <th style="width: 50px;">属性</th>
                                    <th style="width: 50px;">单位</th>
                                    <th style="width: 80px;">未归还数量</th>
                                    <th style="width: 70px;">归还数量</th>
                                    <th style="width: 80px;">单价(元)</th>
                                    <th style="width: 70px;">金额(元)</th>
                                    <th style="width: 80px;">条形码</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>  <input disabled class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>三角阀/通用型</td>
                                    <td>SP20150717002</td>
                                    <td></td>
                                    <td>个</td>
                                    <td class="amount">7</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="3"></td>
                                    <td class="amount">100</td>
                                    <td class="amount">700</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>  <input disabled class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>劲霸超浓缩低泡洗车香波/12L</td>
                                    <td>Q01</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="amount">4</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="3"></td>
                                    <td class="amount">81</td>
                                    <td class="amount">567</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>  <input class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                    <td>劲霸内饰清洁剂/5L/12L</td>
                                    <td>Q0961243218</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="amount">6</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="4"></td>
                                    <td class="amount">25</td>
                                    <td class="amount">150</td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </modal>
            </div>
        </div>
    </div>
    <script src="../../content/js/lib/vue/vue.min.js"></script>
    <script src="../../content/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="../../content/static/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="../../content/static/js/plugins/iCheck/icheck.min.js"></script>
    <script src="../../content/static/js/plugins/chosen/chosen.jquery.js"></script>
    <script src="../../content/static/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="../../content/static/js/content.min.js?v=1.0.0"></script>
    <script src="../../content/js/lib/calendar/calendar.js"></script>
    <script src="../../content/js/lib/calendar/scrollbar.js"></script>
    <script src="../../content/js/lib/vue/vue-modal.js"></script>
    <script src="../../content/js/lib/vue/vue-pagination.js"></script>
    <script src="../../content/js/common.js"></script>
    <script src="../../content/js/lib/vue/select2.js"></script>
    <script type="text/javascript">
        $(function () {
            $(".i-checks").iCheck({
                checkboxClass: "icheckbox_square-green",
                radioClass: "iradio_square-green",
            });
            //时间验证
            var calObj = new $.Calendar({
                //time: true,
                skin: 'white'
            });
            $('#costTimeStart').focus(function () {
                var $this = $(this),
                    val = $this.val(),
                    endTime = $('#costTimeEnd').val();
                calObj.pick({
                    elem: this,
                    endDate: endTime
                });
            });
            $('#costTimeEnd').focus(function () {
                var $this = $(this),
                    val = $this.val(),
                    startTime = $('#costTimeStart').val();
                calObj.pick({
                    elem: this,
                    startDate: startTime
                });
            });
            $('#backTime').focus(function () {
                var $this = $(this),
                    val = $this.val(),
                    startTime = new Date();
                calObj.pick({
                    elem: this,
                    startDate: startTime
                });
            });
        });
        $("#warehouse").select2({
            width: "160px"
        });
        $("#status").select2({
            width: "160px"
        });
        $("#approveStatus").select2({
            width: "160px"
        });
        var vmData = {
            pushModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.pushModal.show = false;
                }
            },
            approveStatusList:[
                {
                    "Text": "全部",
                    "Value": "553",
                },
                {
                    "Text": "待项目经理审批",
                    "Value": "553",
                },
                {
                    "Text": "待CEO审批",
                    "Value": "553",
                },
                {
                    "Text": "待A仓Leader审批",
                    "Value": "553",
                },
                {
                    "Text": "待B仓Leader审批",
                    "Value": "553",
                },
                {
                    "Text": "待销售经理审批",
                    "Value": "553",
                },
            ],
            backModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.backModal.show = false;
                }
            },
            detailModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.detailModal.show = false;
                }
            },
            addModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.addModal.show = false;
                }
            },
            productSelectModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.productSelectModal.show = false;
                }
            },
            modelTitle: "",
            backStatusList:[
                {
                    "Text": "全部",
                    "Value": "553",
                },
                {
                    "Text": "未归还",
                    "Value": "360",
                }, {
                    "Text": "已归还",
                    "Value": "365",
                },
                {
                    "Text": "转进货",
                    "Value": "4105",
                }
            ],
            warehouseList: 
            [
                {
                    "Text": "北京",
                    "Value": "553",
                },
                {
                    "Text": "上海",
                    "Value": "360",
                }, {
                    "Text": "大西洋大西洋大西洋大西洋大西洋大西洋大西洋",
                    "Value": "365",
                },
                {
                    "Text": "广州",
                    "Value": "4105",
                }, {
                    "Text": "北冰洋",
                    "Value": "510",
                },
                {
                    "Text": "深圳",
                    "Value": "3219",
                },
                {
                    "Text": "天津",
                    "Value": "99402",
                },
                {
                    "Text": "合肥",
                    "Value": "519",
                },
                {
                    "Text": "苏州",
                    "Value": "518",
                },
                {
                    "Text": "南京",
                    "Value": "517",
                },
                {
                    "Text": "无锡",
                    "Value": "525",
                },
                {
                    "Text": "大东北",
                    "Value": "528",
                },
                {
                    "Text": "大西北",
                    "Value": "533",
                },
                {
                    "Text": "非洲",
                    "Value": "538",
                },
                {
                    "Text": "欧洲",
                    "Value": "537",
                },
                {
                    "Text": "南美洲",
                    "Value": "536",
                }
            ],
            modelFlag: 0,
            selectProductItem:[],
            productListSelect:[
                {
                    "checked":false,
                    "Id":"1",
                    "productCode":"SP20150717002",
                    "productName": "三角阀",
                    "spec": "桶",
                    "prope": "通用型",
                    "stockCount": "12",
                    "price":"12",
                    "remark":"",
                    "img":"../../content/static/img/no_pic.png"
                },
                {
                    "checked":false,
                    "Id":"2",
                    "productCode":"SP20150717002",
                    "productName": "劲霸皮革清洗剂",
                    "spec": "桶",
                    "prope": "5L",
                    "stockCount": "1",
                    "inventoryCount":"1",
                    "remark":"",
                    "barCode":"",
                    "img":"../../content/static/img/no_pic.png"
                }, {
                    "checked":false,
                    "Id":"3",
                    "productCode":"SP20150717002",
                    "productName": "快卫内饰清洗剂",
                    "spec": "瓶",
                    "prope": "500ML",
                    "stockCount": "52",
                    "price":"52",
                    "remark":"",
                    "img":"../../content/static/img/no_pic.png"
                }, {
                    "checked":false,
                    "Id":"4",
                    "productCode":"SP20150717002",
                    "productName": "漆面至尊镀晶大套装",
                    "spec": "套",
                    "prope": "",
                    "stockCount": "14",
                    "price":"15",
                    "remark":"",
                    "img":"../../content/static/img/no_pic.png"
                }
            ],
            productChooseList:[],
        };
        vmData = $.extend(vmData, baseData);
        var vmMothod = {
            init: function () {},
            detailShow:function(obj){
                vm.detailModal.show = true;
                $("#backStatus").select2({
                    width: "160px"
                });
                $("#backStatus").val('').trigger('change');//初始化
            },
            addShow: function () {
                vm.addModal.show = true;
                $("#warehouseAdd").select2({
                    width: "160px"
                });
                $("#warehouseAdd").val('').trigger('change');//初始化
                $("#supplier").select2({
                    width: "160px"
                });
                $("#supplier").val('').trigger('change');//初始化
            },
            selectProduct: function () {
                vm.productSelectModal.show = true;
            },
            productChooseClick:function(e){
                if (e.checked) {
                    vm.productChooseList.forEach(function(a,v){
                        if(a.Id=v.Id)
                            vm.productChooseList.splice(v,1);
                    });
                }
                else{
                vm.productChooseList.push(e);
                }
            },
            backShow:function(){
                vm.backModal.show = true;
            },
            pushShow:function(){
                vm.pushModal.show = true; 
            }
        };
        vmMothod = $.extend(vmMothod, baseCommonFunction);
        var vm = new Vue({
            el: '.content-container',
            data: vmData,
            methods: vmMothod
        });
        vm.init();
        
    </script>
</body>

</html>